<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1.0"/>
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <title>开始赚钱</title>
    <script type="text/javascript" src="{{ asset('/home/js/responsive.js')}}"></script>
    <script type="text/javascript" src="{{asset('/home/js/jquery-3.1.0.js')}}"></script>
    <script type="text/javascript" src="{{asset('/home/js/jquery_slide.slides.js')}}"></script>
    <link rel="stylesheet" href="{{ asset('/home/css/base.css')}}"/>
    <link rel="stylesheet" href="{{ asset('/home/css/slide.css')}}?version=3"/>
</head>
<body>
<div class="yc_layout">
    <div class="head">
        <a href="javascript:history.go(-1);"><img src="{{asset('/home/images/u12.png')}}" class="back"></a>
        <p>开始赚钱</p>
    </div>
    <div class="yc_content">
        <div class="yc_banner">
            <div class="slides" id="slides">
            @foreach($data as $k => $v)
                <div>
                    <img src="{{asset($v->img)}}" data-id="{{$v->id}}" class="myimg" data-price="{{sprintf('%.2f',$v->price/100)}}">
                    <div class="tishi" style="display: none;">
                        <img src="{{ asset('/home/images/c1.png') }}" alt="">
                        <span>获取广告收益+ <span class="money"></span>元</span>
                    </div>
                </div>

            @endforeach
            </div>
        </div>
    </div>
</div>
<script>
    $.ajaxSetup({
        headers: {
            'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
        }
    });
    var height1 = $(window).height() - $('.head').height();
    console.log(height1);
    $('.yc_content').css('height',height1);
</script>
<script type="text/javascript" src="{{asset('/home/js/earn_slides.js')}}"></script>

</body>
</html>